package com.rimi.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    /**
    * 主键
    */
    @ExcelProperty("用户ID")
    private Integer userId;

    /**
    * 姓名
    */
    @ExcelProperty("姓名")
    private String userName;

    /**
    * 登录名
    */
    @ExcelProperty("登录名")
    private String userLoginName;

    /**
    * 密码
    */
    @ExcelIgnore
    private String userPassword;

    /**
    * 创建时间
    */
    @ExcelProperty("创建时间")
    private Date userCreateTime;

    /**
    * 头像 图片的路径
    */
    @ExcelIgnore
    private String userAvatar;

    /**
    * 角色Id 角色Id
    */
    @ExcelIgnore
    private Integer roleId;

    private Role role;
    //private List<Role> roleList;

    /**
    * 启用状态 0为true1false，代表启用与禁用
    */
    @ExcelIgnore
    private Integer userEnable;

    private static final long serialVersionUID = 1L;
}